//可继承
interface ISWim {
    swimming: () => void
}

interface IFly {
    flying: () => void
}

interface IAction extends ISWim, IFly {
    running: () => void
}

const action: IAction = {
    swimming() {

    },
    flying() {

    },
    running() {

    }
}